package TestPack;

import FlightInfo.Flights;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Flights> flights = new ArrayList<Flights>();
        Flights a = new Flights("CCA1404","ZBAA");
        Flights b = new Flights("CCA2104","ZBTJ");
        Flights c = new Flights("CCA717","ZBAD");
        flights.add(a);
        flights.add(b);
        flights.add(c);
        Flights d = flights.get(0);
        d.FlightNumbers = "CCA4410";
        flights.set(0, d);
    }
}
